package c.e.a.b.e.c;

import c.e.a.b.e.c.u4.b;
import java.util.Collections;
import java.util.List;
import java.util.Objects;

/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */
public final class a1 extends u4<a1, a> implements f6 {
    /* access modifiers changed from: private|static|final */
    public static final a1 zzi;
    private static volatile l6<a1> zzj;
    private int zzc;
    private b5<c1> zzd = o6.d;
    private String zze = "";
    private long zzf;
    private long zzg;
    private int zzh;

    /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */
    public static final class a extends b<a1, a> implements f6 {
        public a() {
            super(a1.zzi);
        }

        public final a m(int i, c1 c1Var) {
            if (this.c) {
                j();
                this.c = false;
            }
            a1.y((a1) this.b, i, c1Var);
            return this;
        }

        public final a n(long j) {
            if (this.c) {
                j();
                this.c = false;
            }
            a1.z((a1) this.b, j);
            return this;
        }

        public final a o(c.e.a.b.e.c.c1.a aVar) {
            if (this.c) {
                j();
                this.c = false;
            }
            a1.A((a1) this.b, (c1) ((u4) aVar.l()));
            return this;
        }

        public final a p(String str) {
            if (this.c) {
                j();
                this.c = false;
            }
            a1.C((a1) this.b, str);
            return this;
        }

        public final c1 r(int i) {
            return ((a1) this.b).u(i);
        }

        public final List<c1> s() {
            return Collections.unmodifiableList(((a1) this.b).v());
        }

        public final int t() {
            return ((a1) this.b).D();
        }

        public final a u(int i) {
            if (this.c) {
                j();
                this.c = false;
            }
            a1.x((a1) this.b, i);
            return this;
        }

        public final String v() {
            return ((a1) this.b).F();
        }

        public final long w() {
            return ((a1) this.b).H();
        }

        public final long x() {
            return ((a1) this.b).J();
        }

        public a(k1 k1Var) {
            super(a1.zzi);
        }
    }

    static {
        a1 a1Var = new a1();
        zzi = a1Var;
        u4.r(a1.class, a1Var);
    }

    public static void A(a1 a1Var, c1 c1Var) {
        Objects.requireNonNull(a1Var);
        c1Var.getClass();
        a1Var.O();
        a1Var.zzd.add(c1Var);
    }

    public static void B(a1 a1Var, Iterable iterable) {
        a1Var.O();
        l3.h(iterable, a1Var.zzd);
    }

    public static void C(a1 a1Var, String str) {
        Objects.requireNonNull(a1Var);
        str.getClass();
        a1Var.zzc |= 1;
        a1Var.zze = str;
    }

    public static void E(a1 a1Var, long j) {
        a1Var.zzc |= 4;
        a1Var.zzg = j;
    }

    public static a M() {
        return (a) zzi.s();
    }

    public static void w(a1 a1Var) {
        Objects.requireNonNull(a1Var);
        a1Var.zzd = o6.d;
    }

    public static void x(a1 a1Var, int i) {
        a1Var.O();
        a1Var.zzd.remove(i);
    }

    public static void y(a1 a1Var, int i, c1 c1Var) {
        Objects.requireNonNull(a1Var);
        c1Var.getClass();
        a1Var.O();
        a1Var.zzd.set(i, c1Var);
    }

    public static void z(a1 a1Var, long j) {
        a1Var.zzc |= 2;
        a1Var.zzf = j;
    }

    public final int D() {
        return this.zzd.size();
    }

    public final String F() {
        return this.zze;
    }

    public final boolean G() {
        return (this.zzc & 2) != 0;
    }

    public final long H() {
        return this.zzf;
    }

    public final boolean I() {
        return (this.zzc & 4) != 0;
    }

    public final long J() {
        return this.zzg;
    }

    public final boolean K() {
        return (this.zzc & 8) != 0;
    }

    public final int L() {
        return this.zzh;
    }

    public final void O() {
        b5 b5Var = this.zzd;
        if (!b5Var.q()) {
            this.zzd = u4.m(b5Var);
        }
    }

    public final Object o(int i, Object obj, Object obj2) {
        switch (k1.a[i - 1]) {
            case 1:
                return new a1();
            case 2:
                return new a(null);
            case 3:
                Object[] objArr = new Object[]{"zzc", "zzd", c1.class, "zze", "zzf", "zzg", "zzh"};
                return new q6(zzi, "\u0001\u0005\u0000\u0001\u0001\u0005\u0005\u0000\u0001\u0000\u0001\u001b\u0002ဈ\u0000\u0003ဂ\u0001\u0004ဂ\u0002\u0005င\u0003", objArr);
            case 4:
                return zzi;
            case 5:
                Object obj3 = zzj;
                if (obj3 == null) {
                    synchronized (a1.class) {
                        obj3 = zzj;
                        if (obj3 == null) {
                            obj3 = new c.e.a.b.e.c.u4.a(zzi);
                            zzj = obj3;
                        }
                    }
                }
                return obj3;
            case 6:
                return Byte.valueOf((byte) 1);
            case 7:
                return null;
            default:
                throw new UnsupportedOperationException();
        }
    }

    public final c1 u(int i) {
        return (c1) this.zzd.get(i);
    }

    public final List<c1> v() {
        return this.zzd;
    }
}
